import 'package:speed_random/generated/json/base/json_field.dart';
import 'package:speed_random/generated/json/mode_app_info_entity.g.dart';
import 'dart:convert';
export 'package:speed_random/generated/json/mode_app_info_entity.g.dart';

@JsonSerializable()
class ModeAppInfoEntity {
	ModeAppInfoSoft? soft;
	ModeAppInfoCh? ch;
	List<ModeAppInfoCommodity>? commodity;
	List<ModeAppInfoApps>? apps;

	ModeAppInfoEntity();

	factory ModeAppInfoEntity.fromJson(Map<String, dynamic> json) => $ModeAppInfoEntityFromJson(json);

	Map<String, dynamic> toJson() => $ModeAppInfoEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ModeAppInfoSoft {
	@JSONField(name: "service_url")
	String? serviceUrl;
	@JSONField(name: "web_url")
	String? webUrl;
	String? deal;
	String? dealu;
	int? id;

	ModeAppInfoSoft();

	factory ModeAppInfoSoft.fromJson(Map<String, dynamic> json) => $ModeAppInfoSoftFromJson(json);

	Map<String, dynamic> toJson() => $ModeAppInfoSoftToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ModeAppInfoCh {
	int? id;
	@JSONField(name: "s_softid")
	int? sSoftid;
	String? type;
	int? ver;
	String? showver;
	@JSONField(name: "update_content")
	String? updateContent;
	@JSONField(name: "update_url")
	String? updateUrl;
	@JSONField(name: "rate_url")
	String? rateUrl;

	ModeAppInfoCh();

	factory ModeAppInfoCh.fromJson(Map<String, dynamic> json) => $ModeAppInfoChFromJson(json);

	Map<String, dynamic> toJson() => $ModeAppInfoChToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ModeAppInfoCommodity {
	String? type;
	String? id;
	String? title;
	String? price;
	String? uptype;
	String? upnum;

	ModeAppInfoCommodity();

	factory ModeAppInfoCommodity.fromJson(Map<String, dynamic> json) => $ModeAppInfoCommodityFromJson(json);

	Map<String, dynamic> toJson() => $ModeAppInfoCommodityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ModeAppInfoApps {
	String? title;
	int? id;
	String? logo;
	@JSONField(name: "update_url")
	String? updateUrl;

	ModeAppInfoApps();

	factory ModeAppInfoApps.fromJson(Map<String, dynamic> json) => $ModeAppInfoAppsFromJson(json);

	Map<String, dynamic> toJson() => $ModeAppInfoAppsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}